/*   
 * 文件名：UserDao.java
 * 版权：〈Copy Ruantu〉
 * 描述：〈描述〉
 * 修改人：〈MengFanding〉
 * 修改时间：2017 上午10:55:04
 * 修改单号：〈修改单号〉
 * 修改内容：〈修改内容〉
 */

package com.ruantu.clothing.dao;

import java.util.List;
import java.util.Set;

import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import com.ruantu.clothing.entity.User;

/**
 * UserDao
 */
@Repository
public interface UserDao {

    public User getByUserName(String userName);

    public Set<String> getRoles(String userName);

    public Set<String> getPermissions(String userName);

    public int addUser(User user);

    public int xiuUser(User user);

    public int delUser(int id);

    public List<User> getAllUser(User user);

    public int updatePassWord(User user);

    public int updateJG(User user);

    @Select("select * from user where id=#{id} ")
    public User getOneUser(int id);
	
	public List<User> selectAllUser();

}
